import http from './http.js'
// 手机号+密码登录
export const phoneLogin = (data) => {
	return http({
		url: '/user/login',
		method: 'POST',
		data
	})
}
// 用户注册
export const register = (data) => {
	return http({
		url: '/user/user/register',
		method: 'POST',
		data
	})
}


export const test = () => {
	return http({
		url: '/notice/page',
		method: 'GET',
	})
}
// 获取用户信息
export const getUserInfo = (id)=>{
	return http({
		url:'/user/user/web/'+id,
		method: 'GET',
	
	})
}

// 修改个人信息
export const putUserInfo = (data)=>{
	return http({
		url:'/user/user/web',
		method: 'PUT',
		data
	})
}

// 获取学校的选项
export const getSchoolList = ()=>{
	return http({
		url:'/school/school/web/list',
		method: 'GET',
	
	})
}


// 发送验证码
export const sendcode = (phone)=>{
	return http({
		url:'/common/code?phone='+ phone,
		method: 'GET',
	})
}

// 获取活动列表
export const getactiveInfo = ()=>{
	return http({
		url:'/activity/activity/web/list',
		method: 'GET',
	
	})
}
// 获取活动详情
export const getactiveDetail = (id)=>{
	return http({
		url:'/activity/activity/web/'+ id,
		method: 'GET',
	
	})
}

